Skip to content

[Compute] az sig image-version create/update: Add warning message for Azure Compute Gallery resources from api-version 2026-03-03#32494

Merged
yanzhudd merged 13 commits intoAzure:devfrom
naga-nandyala:naga/vm_gallery_warning_32376
Jan 6, 2026
Merged

[Compute] az sig image-version create/update: Add warning message for Azure Compute Gallery resources from api-version 2026-03-03#32494
yanzhudd merged 13 commits intoAzure:devfrom
naga-nandyala:naga/vm_gallery_warning_32376

Conversation

@naga-nandyala
Copy link
Copy Markdown
Contributor

@naga-nandyala naga-nandyala commented Dec 3, 2025

Related command

az sig image-version create
az sig image-version update

Description

close: #32376

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Dec 3, 2025

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link
Copy Markdown

azure-client-tools-bot-prd bot commented Dec 3, 2025

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Dec 3, 2025

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 3, 2025

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@naga-nandyala naga-nandyala changed the title add warning msg to az sig image-version create/update [compute]: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 Dec 11, 2025
@naga-nandyala naga-nandyala changed the title [compute]: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 [ompute]: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 Dec 11, 2025
@naga-nandyala naga-nandyala changed the title [ompute]: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 [Compute] BREAKING CHANGE: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 Dec 11, 2025
@naga-nandyala naga-nandyala marked this pull request as ready for review December 11, 2025 02:48
Copilot AI review requested due to automatic review settings December 11, 2025 02:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds breaking change warnings for Azure Compute Gallery image version commands to notify users about upcoming default value changes in API version 2026-03-03.

  • Registers two new default value breaking changes for sig image-version create command
  • Imports register_other_breaking_change function (though not actively used)
  • Includes commented-out alternative implementations using register_other_breaking_change
Comments suppressed due to low confidence (2)

src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py:5

  • The import register_other_breaking_change is never used since all calls to it are commented out. Remove this unused import to keep the code clean.
from azure.cli.core.breaking_change import register_default_value_breaking_change

src/azure-cli/azure/cli/command_modules/vm/_breaking_change.py:46

  • Remove the commented-out code blocks. If these alternative implementations using register_other_breaking_change are not needed, they should be deleted rather than left commented out. If they might be needed in the future, consider documenting the reasoning with a single-line comment or tracking through a separate issue. Large blocks of commented code reduce code maintainability.

register_default_value_breaking_change(command_name='sig image-version update',
                                       arg='--end-of-life-date',
                                       current_default=None,
                                       new_default='6 months from publish date',
                                       target_version=None)

register_default_value_breaking_change(command_name='sig image-version update',
                                       arg='--block-deletion-before-end-of-life',
                                       current_default=None,
                                       new_default=True,
                                       target_version=None)


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +19 to +29
register_default_value_breaking_change(command_name='sig image-version create',
arg='--end-of-life-date',
current_default=None,
new_default='6 months from publish date',
target_version=None)

register_default_value_breaking_change(command_name='sig image-version create',
arg='--block-deletion-before-end-of-life',
current_default=None,
new_default=True,
target_version=None)
Copy link

Copilot AI Dec 11, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title mentions adding warnings for both az sig image-version create and az sig image-version update, but only the create command has breaking change registrations. Add similar register_default_value_breaking_change registrations for the update command to match the PR's stated purpose, or update the PR title/description to clarify that only create is being addressed.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have code for update as well

@naga-nandyala naga-nandyala changed the title [Compute] BREAKING CHANGE: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 [Compute] BREAKING CHANGE: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 Dec 11, 2025
@naga-nandyala
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 3 pipeline(s).

@yanzhudd yanzhudd changed the title [Compute] BREAKING CHANGE: az sig image-version create/update: Warning message for Azure Compute Gallery resources from Api-version 2026-03-03 [Compute] az sig image-version create/update: Add warning message for Azure Compute Gallery resources from Api-version 2026-03-03 Dec 11, 2025
@yanzhudd
Copy link
Copy Markdown
Contributor

since it is not an actual breaking change but just a pre-announcement, I've refined the title accordingly.

@yanzhudd yanzhudd changed the title [Compute] az sig image-version create/update: Add warning message for Azure Compute Gallery resources from Api-version 2026-03-03 [Compute] az sig image-version create/update: Add warning message for Azure Compute Gallery resources from api-version 2026-03-03 Jan 5, 2026
@yanzhudd yanzhudd merged commit 6252d47 into Azure:dev Jan 6, 2026
48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Compute az vm/vmss/image/disk/snapshot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warning message for Azure Compute Gallery resources from Api-version 2026-03-03

5 participants